package com.ruoyi.workflow.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 门店信息对象 bus_store_info
 *
 * @author dong
 * @date 2022-11-24
 */
@Getter
@Setter
@TableName("bus_store_info")
public class BusStoreInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;

    /** 门店介绍 */
    private String intro;

    /**
     * 经营范围
     */
    @Excel(name = "经营范围")
    @TableField("business_scope")
    private String businessScope;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    @TableField("contact")
    private String contact;

    /**
     * 门店地址
     */
    @Excel(name = "门店地址")
    @TableField("address")
    private String address;

    /**
     * 开店时间
     */
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date openingTime;

    /**
     * 闭店时间
     */
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date closingTime;

    /**
     * 管理员id
     */
    @Excel(name = "管理员id")
    @TableField("manager_id")
    private Long managerId;

    /**
     * 管理员名称
     */
    @Excel(name = "管理员名称")
    @TableField("manager_name")
    private String managerName;

    /**
     * 管理员手机号
     */
    @Excel(name = "管理员手机号")
    @TableField("manager_tel")
    private String managerTel;

    /**
     * 状态: 0=营业中, 1=闭店, 2=删除
     */
    @Excel(name = "状态: 0=营业中, 1=闭店, 2=删除")
    @TableField("status")
    private Integer status;

    /**
     * 创建人id
     */
    @Excel(name = "创建人id")
    @TableField("creator_id")
    private Long creatorId;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("created_time")
    private Date createdTime;

    /**
     * 更新人员id
     */
    @Excel(name = "更新人员id")
    @TableField("updator_id")
    private Long updatorId;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField("updated_time")
    private Date updatedTime;

}
